<template>
    <footer class="footer">
      <span class="todo-count">剩余<strong>{{this.list.length}}</strong></span>
      <ul class="filters">
        <li>
          <a class="selected" href="javascript:;" @click="$emit('isshow','all')">全部</a>
        </li>
        <li>
          <a href="javascript:;" @click="$emit('isshow','no')">未完成</a>
        </li>
        <li>
          <a href="javascript:;" @click="$emit('isshow','yes')">已完成</a>
        </li>
      </ul>
      <button class="clear-completed" @click="$emit('clear')">清除已完成</button>
    </footer>
  </template>
  
  <script>
  export default {
    props:['list'],
  }
  </script>